package com.project.controller;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.project.bean.LogBean;
import com.project.bean.PowerBean;
import com.project.service.ILogService;
import com.project.service.IPowerService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.time.LocalDate;
import java.util.List;

@RestController
@RequestMapping("power")
@Api(tags = "权限控制层")
public class PowerController {
    @Autowired
   private IPowerService powerService;

    /**
     * 查询所有权限
     * return 权限集合
     */
    @ApiOperation(value = "查询所有权限")
    @GetMapping("findAll")
    List<PowerBean> findAll(){
        return powerService.findAll();
    }
}
